package com.kjtpay.design_pattern.adapter;

import android.util.Log;

abstract class Player {
    protected String name;
    public Player(String name){
        this.name = name;
    }

    // 返回当前动作，用于界面显示
    protected String action;

    protected Player() {
    }

    public String show() {
        Log.v("Player", action);
        return action;
    }

    // 进攻
    public abstract void attack();

    // 防守
    public abstract void defence();
}
